package com.uchedao.seller.ui.car.publish.vin.Entity;

import com.google.gson.annotations.SerializedName;
import com.uchedao.seller.ui.carlist.entity.IndexSelectItem;

/**
 * Created by ZhangZhanghua on 2015/8/25 0025.
 */
public class CarModel extends IndexSelectItem {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    public static final String BRAND_ID = "brand_id";
    public static final String ID = "id";
    public static final int INPUT_MYSELF = -0x1;
    public static final String MAKER_ID = "maker_id";
    public static final String MODEL_NAME = "model_name";
    public static final String MODEL_YEAR = "model_year";
    public static final String NAME = "sale_name";
    public static final String SELECT_MODEL = " select * from car_model where series_id=? order by model_year desc";
    public static final String SELECT_MODEL_BY_ID = " select * from car_model where id =? ;";
    public static final String SERIES_ID = "series_id";
    public static final String TABLE_NAME = "car_model";

    @SerializedName("id")
    private int id;

    @SerializedName("model_year")
    private String modelYear;

    @SerializedName("text")
    private String name;

    @SerializedName("series_id")
    private int seriesId;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getModelYear() {
        return modelYear;
    }

    public void setModelYear(String modelYear) {
        this.modelYear = modelYear;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(int seriesId) {
        this.seriesId = seriesId;
    }

    @Override
    public String getIndexSelectAlpha() {
        return modelYear;
    }

    @Override
    public String getIndexSelectName() {
        return name;
    }

}

